import request from "@/utils/request";

export const PostNotice = data => {
    return request({
        url: "/admin/announcement/saveAnnouncement",
        method: "post",
        data: data
    });
};
export const GetAllNotice = (pageNum, pageSize) => {
    return request({
        url: "/admin/announcement/findAllAnnouncement/" + pageNum + "/" + pageSize,
        method: "get",
    });
};

export const DeleteNotice = id => {
    return request({
        url: "/admin/announcement/deleteAnnouncement/" + id,
        method: "delete",
    });
};
